package com.zhang.constants;

public interface UserConstant {

    /**
     * 用户锁定
     */
    public static final Character  USER_STATUS_LOCK = '0';

    /**
     * 用户启用
     */
    public static final Character  USER_STATUS_ENABLE = '1';


    /**
     * 默认两天过期
     */
    public static final Long EXPIREIN = 60L*60*24*2;

    /**
     * 角色信息前缀
     */
    public static final String CLAIM_PRINCIPAL_ROLES = "claim-principal-roles";

    /**
     * 用户基础信息前缀 Id，电话，昵称
     */
    public static final String CLAIM_PRINCIPAL_ID = "claim-principal-id";

    public static final String CLAIM_PRINCIPAL_PHONE = "claim-principal-phone";

    public static final String CLAIM_PRINCIPAL_NICKName = "claim-principal-NickName";


    /**
     * userInfo中map
     */
    public static final String  USER_NICK_NAME = "nick_name";

    public static final String USER_PHONE = "user_phone";
}
